import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
      {
        path: '/',
        name: 'GswzIndex',
        component: () => import('@/components/GswzIndex'),
        meta: { title: '首页', icon: 'GswzIndex' }
      },
      {
        path: '/Products',
        name: 'Products',
        component: () => import('@/components/Products'),
        meta: { title: '产品', icon: 'Products' }
      },
      {
        path: '/Cases',
        name: 'Cases',
        component: () => import('@/components/Cases'),
        meta: { title: '案例', icon: 'Cases' }
      },
      {
        path: '/Information',
        name: 'Information',
        component: () => import('@/components/Information'),
        meta: { title: '资讯', icon: 'Information' }
      },
      {
        path: '/JoinIn',
        name: 'JoinIn',
        component: () => import('@/components/JoinIn'),
        meta: { title: '加盟', icon: 'JoinIn' }
      },
      {
        path: '/AboutUs',
        name: 'AboutUs',
        component: () => import('@/components/AboutUs'),
        meta: { title: '关于我们', icon: 'AboutUs' }
      },
      {
        path: '/NewsDetail',
        name: 'NewsDetail',
        component: () => import('@/components/Information/NewsDetail'),
        meta: { title: '新闻详情', icon: 'NewsDetail' }
      },
    ]
})
